package com.tedu.ds.role.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class RoleParam {

    @ApiModelProperty(value = "角色ID", example = "1", required = true)
    private Integer id;

    @ApiModelProperty(value = "用户类型", example = "管理员", required = true)
    @NotBlank(message = "用户类型不能为空")
    private String role;

    @ApiModelProperty(value = "用户权限说明", example = "拥有所有权限")
    private String description;

    @ApiModelProperty(value = "权限等级", example = "1")
    private String grade;
}